<include file="Public:head"/>
<style>
    .pull-right{margin-right: 10px}
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>买手列表</h5>
                    <div class="ibox-tools" style="margin-top: -9px;">
                        <a href="javascript:location.reload();" class="btn btn-primary"><i class="fa fa-refresh"></i> 刷新</a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">
                        </div>
                        <form class="form-inline" action="" method="get">
                            <div class="col-sm-9">
                                <div class="input-group col-sm-3  pull-right">
                                    <input type="text" name="name" value="{$name?$name:'';}" placeholder="买手名称" class="input-sm form-control">
			                                    <span class="input-group-btn">
			                                      <button type="submit" class="btn btn-sm btn-primary"> 搜索</button>
			                                    </span>
                                </div>
                                <div class="input-group col-sm-2 pull-right">
                                    <input type="text" name="mobile" placeholder="手机" value="{$mobile?$mobile:''}" class="input-sm form-control select_no_border">
                                </div>
                                <div class="input-group col-sm-2 pull-right">
                                    <input type="text" name="id_card" placeholder="身份证" value="{$id_card?$id_card:''}" class="input-sm form-control select_no_border">
                                </div>
                                <div class="input-group col-sm-2 pull-right select_width">
                                    <select name="status" class="input-sm form-control select_no_border">
                                        <option value="">状态</option>
                                        <option value="0" <if condition="$status =='0'">selected</if>>待审核</option>
                                        <option value="1" <if condition="$status =='1'">selected</if>>通过</option>
                                        <option value="-1" <if condition="$status =='-1'">selected</if>>不通过</option>
                                    </select>
                                </div>

                            </div>
                        </form>
                    </div>

                    <br />

                    <div class="table-responsive">
                        <form action="__URL__/operate" method="post" id="operate_form">
                            <table class="table table-bordered table-hover"
                                   id="categoryTable">
                                <thead>
                                <tr class="active">
                                    <th><input onclick="choosebox(this)" type="checkbox" /></th>
                                    <th height="40">编号</th>
                                    <th>买手名称</th>
                                    <th>身份证</th>
                                    <th>手机</th>
                                    <th>审核状态</th>
                                    <th width="80">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="da" id="vo">
                                    <tr>
                                        <td><input type="checkbox" name="users_id[]" value="{$vo['id']}" /></td>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.name}</td>
                                        <td>{$vo.id_card}</td>
                                        <td>{$vo.mobile}</td>
                                        <td>
                                            <switch name="$vo.status">
                                                <case value="0">待审核</case>
                                                <case value="1">通过</case>
                                                <case value="-1">不通过</case>
                                            </switch>
                                        </td>
                                        <td width="70">
                                            <a href="{:url('Member/checkbuyer',array('id'=>$vo['id']))}" class="btn btn-primary">审核</a>
                                            <!--<a  href="javascript:;" data-id="{$vo.id}"  class="btn btn-danger" >删除</a>-->
                                        </td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </form>
                        <div class="col-sm-12" style="padding:0px;">
                            <ul class="pagination  pull-right">
                                {$page}
                            </ul>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
</body>

</html>